package com.guigu.factory;

import com.guigu.simplefactory.Pizza;

/**
 * @description:
 * @author: lizhenhua05
 * @created: 2021/01/24 15:14
 */
public class BjOrder extends Order{

    public Pizza order(int i) {
        Pizza pizza = null;

        if (i==1){
            pizza = new BjChinesePizza();
        }else if (i==2){
            pizza = new BjAmericanPizza();
        }

        pizza.make();
        pizza.cut();
        pizza.box();

        return pizza;
    }
}
